/*
 * @Author: 黄达全
 * @Date: 2024-08-09 16:28:57
 * @LastEditTime: 2024-08-16 19:18:12
 */
import type { ApiResponse} from "@/common/type"

export type RoleXiaLaVO={
    id:number,
    name:string
}
export type RoleXiaLaOptions={
    label:string,
    value:number
}


export type RoleAddForm={
    name:string,
    desc:string,
    status:number
}

export type RoleSelectVO={
    id:number,
    name:string,
    desc:string,
    status:number,
    createTime:string,
    updateTime:string,
    createManagerId:number,
    lastUpdateManagerId:number
}

export type RoleSelectVOList={
    total:number,
    records:RoleSelectVO[]
}

export type RoleUpdateForm={
    id:number,
    name:string,
    desc:string,
    status:number
}

export type RoleApi={
    selectXiaLa:()=>Promise<ApiResponse<RoleXiaLaVO[]>>,
    selectByPage:(page:number,pageSize:number)=>Promise<ApiResponse<RoleSelectVOList>>,
    add:(form:RoleAddForm)=>Promise<ApiResponse<null>>,
    update:(form:RoleUpdateForm)=>Promise<ApiResponse<null>>,
    delete:(ids:number[])=>Promise<ApiResponse<null>>
}

